#!/usr/bin/make -f

configure := --enable-mmx=no --prefix=/usr --exec-prefix=/usr --disable-amd64 --without-id3

%:
	dh $@

binary binary-arch binary-indep: install

ifneq ($(USE_BUILD_DIR),TRUE)

include debian/builddir.mk

else

build: debian/stamp-build
debian/stamp-build:
	dh build --before dh_auto_configure
	autoreconf -fi
	dh_auto_configure -- $(configure)
	dh build --after dh_auto_configure
	touch $@

install: build debian/stamp-install
debian/stamp-install:
	dh install --until dh_prep
	dh_installdocs AUTHORS README TODO
	dh_installchangelogs ChangeLog
	dh install --remaining
	touch $@

endif
